<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>固定表头和列</title>
</head>
<body>
<div style="OVERFLOW: hidden;width:718px;height:229px;">
    <table id="table1" border="1" width="900">
        <tbody>
        <tr class="tabTh">
            <td nowrap="nowrap" width="100px">序号</td>
            <td nowrap="nowrap" width="100px">用户名</td>
            <td nowrap="nowrap" width="100px">姓名</td>
            <td nowrap="nowrap" width="100px">归属机构</td>
            <td nowrap="nowrap" width="100px">密码</td>
            <td nowrap="nowrap" width="100px">用户类型</td>
            <td nowrap="nowrap" width="200px">状 态(0无效/1有效)</td>
            <td nowrap="nowrap" width="100px">备注</td>
        </tr>
        <tr align="center">
            <td nowrap="nowrap"><input type="checkbox">1</td>
            <td nowrap="nowrap">admin</td>
            <td nowrap="nowrap">admin</td>
            <td nowrap="nowrap">9</td>
            <td nowrap="nowrap">******</td>
            <td nowrap="nowrap">系统管理员</td>
            <td nowrap="nowrap">1</td>
            <td nowrap="nowrap">it管理员</td>
        </tr>
        <tr align="center">
            <td nowrap="nowrap"><input type="checkbox">2</td>
            <td nowrap="nowrap">admin2</td>
            <td nowrap="nowrap">admin2</td>
            <td nowrap="nowrap">92</td>
            <td nowrap="nowrap">******</td>
            <td nowrap="nowrap">系统管理员2</td>
            <td nowrap="nowrap">1</td>
            <td nowrap="nowrap">it管理员2</td>
        </tr>
        <tr align="center">
            <td nowrap="nowrap"><input type="checkbox">3</td>
            <td nowrap="nowrap">admin3</td>
            <td nowrap="nowrap">admin3</td>
            <td nowrap="nowrap">93</td>
            <td nowrap="nowrap">******</td>
            <td nowrap="nowrap">系统管理员3</td>
            <td nowrap="nowrap">1</td>
            <td nowrap="nowrap">it管理员3</td>
        </tr>
        <tr align="center">
            <td nowrap="nowrap"><input type="checkbox">4</td>
            <td nowrap="nowrap">admin4</td>
            <td nowrap="nowrap">admin4</td>
            <td nowrap="nowrap">9</td>
            <td nowrap="nowrap">******</td>
            <td nowrap="nowrap">系统管理员4</td>
            <td nowrap="nowrap">14</td>
            <td nowrap="nowrap">it管理员4</td>
        </tr>
        <tr align="center">
            <td nowrap="nowrap"><input type="checkbox">5</td>
            <td nowrap="nowrap">admin5</td>
            <td nowrap="nowrap">admin5</td>
            <td nowrap="nowrap">95</td>
            <td nowrap="nowrap">******</td>
            <td nowrap="nowrap">系统管理员</td>
            <td nowrap="nowrap">1</td>
            <td nowrap="nowrap">it管理员</td>
        </tr>
        <tr align="center">
            <td nowrap="nowrap"><input type="checkbox">6</td>
            <td nowrap="nowrap">admin6</td>
            <td nowrap="nowrap">admin6</td>
            <td nowrap="nowrap">9</td>
            <td nowrap="nowrap">******</td>
            <td nowrap="nowrap">系统管理员6</td>
            <td nowrap="nowrap">1</td>
            <td nowrap="nowrap">it管理员6</td>
        </tr>
        <tr align="center">
            <td nowrap="nowrap"><input type="checkbox">7</td>
            <td nowrap="nowrap">admin7</td>
            <td nowrap="nowrap">admin7</td>
            <td nowrap="nowrap">7</td>
            <td nowrap="nowrap">******</td>
            <td nowrap="nowrap">系统管理员7</td>
            <td nowrap="nowrap">1</td>
            <td nowrap="nowrap">it管理员7</td>
        </tr>
        <tr align="center">
            <td nowrap="nowrap"><input type="checkbox">8</td>
            <td nowrap="nowrap">admin8</td>
            <td nowrap="nowrap">admin8</td>
            <td nowrap="nowrap">9</td>
            <td nowrap="nowrap">******</td>
            <td nowrap="nowrap">系统管理员8</td>
            <td nowrap="nowrap">1</td>
            <td nowrap="nowrap">it管理员8</td>
        </tr>
        <tr align="center">
            <td nowrap="nowrap"><input type="checkbox">9</td>
            <td nowrap="nowrap">admin9</td>
            <td nowrap="nowrap">admin9</td>
            <td nowrap="nowrap">9</td>
            <td nowrap="nowrap">******</td>
            <td nowrap="nowrap">系统管理员</td>
            <td nowrap="nowrap">1</td>
            <td nowrap="nowrap">it管理员</td>
        </tr>
        <tr align="center">
            <td nowrap="nowrap"><input type="checkbox">10</td>
            <td nowrap="nowrap">admin10</td>
            <td nowrap="nowrap">admin</td>
            <td nowrap="nowrap">9</td>
            <td nowrap="nowrap">******</td>
            <td nowrap="nowrap">系统管理员10</td>
            <td nowrap="nowrap">1</td>
            <td nowrap="nowrap">it管理员</td>
        </tr>
        <tr align="center">
            <td nowrap="nowrap"><input type="checkbox">11</td>
            <td nowrap="nowrap">admin11</td>
            <td nowrap="nowrap">admin11</td>
            <td nowrap="nowrap">9</td>
            <td nowrap="nowrap">******</td>
            <td nowrap="nowrap">系统管理员11</td>
            <td nowrap="nowrap">1</td>
            <td nowrap="nowrap">it管理员11</td>
        </tr>
        <tr align="center">
            <td nowrap="nowrap"><input type="checkbox">12</td>
            <td nowrap="nowrap">admin12</td>
            <td nowrap="nowrap">admin12</td>
            <td nowrap="nowrap">9</td>
            <td nowrap="nowrap">******</td>
            <td nowrap="nowrap">系统管理员12</td>
            <td nowrap="nowrap">1</td>
            <td nowrap="nowrap">it管理员</td>
        </tr>
        <tr align="center">
            <td nowrap="nowrap"><input type="checkbox">13</td>
            <td nowrap="nowrap">admin</td>
            <td nowrap="nowrap">admin</td>
            <td nowrap="nowrap">9</td>
            <td nowrap="nowrap">******</td>
            <td nowrap="nowrap">系统管理员</td>
            <td nowrap="nowrap">1</td>
            <td nowrap="nowrap">it管理员</td>
        </tr>
        <tr align="center">
            <td nowrap="nowrap"><input type="checkbox">14</td>
            <td nowrap="nowrap">admin4</td>
            <td nowrap="nowrap">admin4</td>
            <td nowrap="nowrap">9</td>
            <td nowrap="nowrap">******</td>
            <td nowrap="nowrap">系统管理员4</td>
            <td nowrap="nowrap">1</td>
            <td nowrap="nowrap">it管理员</td>
        </tr>
        <tr align="center">
            <td nowrap="nowrap"><input type="checkbox">15</td>
            <td nowrap="nowrap">admin</td>
            <td nowrap="nowrap">admin</td>
            <td nowrap="nowrap">9</td>
            <td nowrap="nowrap">******</td>
            <td nowrap="nowrap">系统管理员5</td>
            <td nowrap="nowrap">1</td>
            <td nowrap="nowrap">it管理员5</td>
        </tr>
        <tr align="center">
            <td nowrap="nowrap"><input type="checkbox">16</td>
            <td nowrap="nowrap">admin</td>
            <td nowrap="nowrap">admin6</td>
            <td nowrap="nowrap">9</td>
            <td nowrap="nowrap">******</td>
            <td nowrap="nowrap">系统管理6</td>
            <td nowrap="nowrap">1</td>
            <td nowrap="nowrap">it管理员6</td>
        </tr>
        <tr align="center">
            <td nowrap="nowrap"><input type="checkbox">17</td>
            <td nowrap="nowrap">admin</td>
            <td nowrap="nowrap">admin</td>
            <td nowrap="nowrap">9</td>
            <td nowrap="nowrap">******</td>
            <td nowrap="nowrap">系统管理员</td>
            <td nowrap="nowrap">1</td>
            <td nowrap="nowrap">it管理员</td>
        </tr>
        <tr align="center">
            <td nowrap="nowrap"><input type="checkbox">18</td>
            <td nowrap="nowrap">admin</td>
            <td nowrap="nowrap">admin</td>
            <td nowrap="nowrap">9</td>
            <td nowrap="nowrap">******</td>
            <td nowrap="nowrap">系统管理员</td>
            <td nowrap="nowrap">1</td>
            <td nowrap="nowrap">it管理员</td>
        </tr>
        <tr align="center">
            <td nowrap="nowrap"><input type="checkbox">19</td>
            <td nowrap="nowrap">admin19</td>
            <td nowrap="nowrap">admin19</td>
            <td nowrap="nowrap">9</td>
            <td nowrap="nowrap">******</td>
            <td nowrap="nowrap">系统管理员</td>
            <td nowrap="nowrap">1</td>
            <td nowrap="nowrap">it管理员</td>
        </tr>
        <tr align="center">
            <td nowrap="nowrap"><input type="checkbox">20</td>
            <td nowrap="nowrap">admin20</td>
            <td nowrap="nowrap">admin20</td>
            <td nowrap="nowrap">9</td>
            <td nowrap="nowrap">******</td>
            <td nowrap="nowrap">系统管理员</td>
            <td nowrap="nowrap">1</td>
            <td nowrap="nowrap">it管理员</td>
        </tr>
        </tbody>
    </table>
</div>
<script type="text/javascript" src="//cdnjscn.b0.upaiyun.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript" src="TableFix.js"></script>
<script type="text/javascript">
    $(function () {
        $('#table1').fixTable(1, 1);
    });
</script>
</body>
</html>